<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
	Remove this if you use the .htaccess -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>削除企業リスト</title>
	<meta name="description" content="" />
	<meta name="author" content="n" />
	<meta name="viewport" content="width=device-width; initial-scale=1.0" />
	<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
	<link rel="shortcut icon" href="/favicon.ico" />
	<link rel="apple-touch-icon" href="/apple-touch-icon.png" />

<script src="http://code.jquery.com/jquery-1.6.4.js"></script>

<style>
table td{
	padding: 5px;
}
</style>

</head>

<script type="text/javascript">
	
</script>

<body style="font-family: meiryo,Verdana; font-size: 14px">
	<div>
		<header>
			<h1>削除した企業</h1>
		</header>
		
			
	</div>
	
	<a href="/admin">admin</a>
	
	<div>
		<table>
			<tr>
				<th>id</th>
				<th>Name</th>
				<th>Address</th>
				
			</tr>
		<?php foreach ($companies as $company) {?>
			<tr>
				<td><?php echo $company->id?></td>
				<td><a href="/admin/<?php echo $company->id?>"><?php echo $company->kaisha_mei?></a></td>
				<td><?php echo $company->address?></td>
				
				<td nowrap="" style="font-size: 13px">
					<a href="/admin/edit/<?php echo $company->id?>">編集</a>
					<a href="/admin/restore/<?php echo $company->id?>" onclick='return confirm("are you sure restore?")'>Restore</a>
				</td>
			</tr>
		<?php }?>
		</table>
		
		<a href="/admin/addnew">追加</a>
	</div>
</body>
</html>
